package org.marketing.common.event;

import org.marketing.common.dto.EventDataDTO;

/**
 * 商城调用jd接口后的事件
 * 目前设计只有失败的事件会发出来，但是dto中会预留字段，成功的事件也会发出
 * 
 * @author BENJAMIN
 *
 */
public class EventShoppingJDDTO  extends EventDataDTO{
    /**
     * 下单的用户id
     */
    private Integer userId;

	/**
     * 订单号
     */
    private String shoppingOrderNo;
    
    /**
     * jd 是否下单成功
     */
    private boolean isOrdered;

	
    /**
     * 积分数量
     */
    private Long pointNums;


	@Override
	public String toString() {
		return "EventShoppingJDDTO [userId=" + userId + ", shoppingOrderNo=" + shoppingOrderNo + ", isOrdered="
				+ isOrdered + ", pointNums=" + pointNums + "]";
	}


	public Integer getUserId() {
		return userId;
	}


	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public String getShoppingOrderNo() {
		return shoppingOrderNo;
	}


	public void setShoppingOrderNo(String shoppingOrderNo) {
		this.shoppingOrderNo = shoppingOrderNo;
	}


	public boolean isOrdered() {
		return isOrdered;
	}


	public void setOrdered(boolean isOrdered) {
		this.isOrdered = isOrdered;
	}


	public Long getPointNums() {
		return pointNums;
	}


	public void setPointNums(Long pointNums) {
		this.pointNums = pointNums;
	}


	public EventShoppingJDDTO(Integer userId, String shoppingOrderNo, boolean isOrdered, Long pointNums) {
		super();
		this.userId = userId;
		this.shoppingOrderNo = shoppingOrderNo;
		this.isOrdered = isOrdered;
		this.pointNums = pointNums;
	}
	
	public EventShoppingJDDTO() {
		super();
	}


}
